package com.aeon.adapter;

import java.util.Arrays;

import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;

public class JavaPClassAdapter extends ClassVisitor {

	public JavaPClassAdapter(int arg0) {
		super(arg0);
	}

	@Override
	public void visit(int version, int access, String name, String signature,
			String superName, String[] interfaces) {
		System.out.println(name + " extends " + superName + " implements "
				+ Arrays.toString(interfaces) + " {");

	}

	@Override
	public MethodVisitor visitMethod(int access, String name, String desc,
			String signature, String[] exceptions) {
		System.out.println(" " + name + desc);
		return null;
	}

	@Override
	public void visitEnd() {
		System.out.println(" }");
	}
}
